/*
 * @Author: huangyq
 * @Date: 2022-06-14 13:38:31
 * @LastEditTime: 2022-06-14 13:53:16
 * @LastEditors: huangyq
 * @Description: 配置中心
 * @FilePath: /vue3-boilerplate-pc-client/src/routers/sub-menus/configCenter.ts
 */
export default [
  {
    path: '/config-center/employee',
    name: 'employee',
    component: () => import('@/views/pages/config-center/employee/index.vue'),
    meta: {
      code: '000',
      sidebar: true,
      title: '员工管理'
    },
    children: [
      {
        path: '/config-center/employee/user/list',
        name: 'employeeUserList',
        component: () =>
          import('@/views/pages/config-center/employee/user/list.vue'),
        meta: {
          code: '000',
          sidebar: true,
          keepAlive: true,
          title: '用户管理'
        }
      },
      {
        path: '/config-center/employee/user/create',
        name: 'employeeUserCreate',
        component: () =>
          import('@/views/pages/config-center/employee/user/create.vue'),
        meta: {
          code: '000',
          title: '新增用户'
        }
      },
      {
        path: '/config-center/employee/user/detail',
        name: 'employeeUserDetail',
        component: () =>
          import('@/views/pages/config-center/employee/user/detail.vue'),
        meta: {
          code: '000',
          title: '用户详情'
        }
      },
      {
        path: '/config-center/employee/role',
        name: 'employeeRole',
        component: () =>
          import('@/views/pages/config-center/employee/role/list.vue'),
        meta: {
          code: '000',
          sidebar: true,
          keepAlive: true,
          title: '角色管理'
        }
      }
    ]
  },
  {
    path: '/config-center/partner',
    name: 'partner',
    component: () => import('@/views/pages/config-center/partner/index.vue'),
    meta: {
      code: '000',
      sidebar: true,
      title: '合作伙伴管理'
    },
    children: [
      {
        path: '/config-center/partner/user',
        name: 'partnerUser',
        component: () =>
          import('@/views/pages/config-center/partner/user/list.vue'),
        meta: {
          code: '000',
          sidebar: true,
          keepAlive: true,
          title: '用户管理'
        }
      },
      {
        path: '/config-center/partner/role',
        name: 'partnerRole',
        component: () =>
          import('@/views/pages/config-center/partner/role/list.vue'),
        meta: {
          code: '000',
          sidebar: true,
          keepAlive: true,
          title: '角色管理'
        }
      }
    ]
  }
]
